home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / comm / tcp / IPDial1_7.lha / ipdial / IPDial.h < prev    next >
C/C++ Source or Header  |  1995-07-21  |  3KB  |  138 lines

  1. /**
  2. ***  IPDial     Script program for initializing a SLIP connection
  3. ***  Copyright  (C)   1994    Jochen Wiedmann
  4. ***
  5. ***  This program is free software; you can redistribute it and/or modify
  6. ***  it under the terms of the GNU General Public License as published by
  7. ***  the Free Software Foundation; either version 2 of the License, or
  8. ***  (at your option) any later version.
  9. ***
  10. ***  This program is distributed in the hope that it will be useful,
  11. ***  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ***  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ***  GNU General Public License for more details.
  14. ***
  15. ***  You should have received a copy of the GNU General Public License
  16. ***  along with this program; if not, write to the Free Software
  17. ***  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ***
  19. ***
  20. ***  This is the main include file.
  21. ***
  22. ***
  23. ***  Computer: Amiga 1200                       Compiler: Dice 3.01
  24. ***
  25. ***  Author:    Jochen Wiedmann
  26. ***             Am Eisteich 9
  27. ***             72555 Metzingen
  28. ***             Germany
  29. ***
  30. ***             Phone: (+0049) 7123 / 14881
  31. ***             Internet: wiedmann@neckar-alb.de
  32. **/
  33. #ifndef IPDIAL_H
  34. #define IPDIAL_H
  35.  
  36.  
  37.  
  38.  
  39. /**
  40. ***  Include files
  41. **/
  42. #include <stdlib.h>
  43. #include <string.h>
  44. #include <stdio.h>
  45.  
  46. #include <exec/types.h>
  47.  
  48. #if defined(_DCC)  ||  defined(__SASC)  ||  defined(__GNUC__)
  49. #include <proto/exec.h>
  50. #include <proto/dos.h>
  51. #else
  52. #include <clib/exec_protos.h>
  53. #include <clib/dos_protos.h>
  54. #endif
  55.  
  56. #if defined(__GNUC__)
  57. #define stricmp strcasecmp
  58. #define strnicmp strncasecmp
  59. #endif
  60.  
  61.  
  62.  
  63.  
  64. /*** Prototypes
  65. **/
  66.  
  67. /**
  68. ***  IPDial.c
  69. **/
  70. extern ULONG EchoMode;
  71. extern ULONG VerboseMode;
  72.  
  73.  
  74. /**
  75. ***  DeviceIO.c
  76. **/
  77. extern BYTE DeviceIOWait(APTR);
  78. extern VOID DeviceIOAbort(APTR);
  79. extern VOID DeviceIOSend(APTR, UWORD);
  80. extern BYTE DeviceIODo(APTR, UWORD);
  81.  
  82. extern ULONG DeviceIOSignal(APTR);
  83. extern struct IORequest *DeviceIOReq(APTR);
  84.  
  85. extern APTR DeviceIOCreate(ULONG);
  86. extern VOID DeviceIODelete(APTR);
  87. extern BYTE DeviceIOOpen(STRPTR, ULONG, APTR, ULONG);
  88.  
  89.  
  90. /**
  91. ***  Serial.c
  92. **/
  93. extern VOID SerialCleanup(VOID);
  94. extern ULONG SerialOpen(STRPTR, STRPTR, ULONG);
  95. extern VOID SerialSend(STRPTR, ULONG);
  96. extern LONG SerialWait(STRPTR *, LONG);
  97. extern VOID SerialShowParms(VOID);
  98. extern VOID SerialSetBaud(ULONG);
  99. extern VOID SerialSetDataBits(UBYTE);
  100. extern VOID SerialSetStopBits(UBYTE);
  101. extern VOID SerialSetBufSize(ULONG);
  102. extern ULONG SerialSetParity(STRPTR);
  103. extern ULONG SerialSetProtocol(STRPTR);
  104. extern VOID SerialTerminal(STRPTR, ULONG, ULONG);
  105. extern STRPTR SerialWaitBuffer(VOID);
  106.  
  107.  
  108. /**
  109. ***  Buffer.c
  110. **/
  111. extern APTR BufferCreate(VOID);
  112. extern VOID BufferClear(APTR);
  113. extern VOID BufferExtend(APTR, const UBYTE*, ULONG);
  114. extern LONG BufferCheck(APTR, STRPTR *);
  115. extern STRPTR BufferBuffer(APTR);
  116.  
  117.  
  118. /**
  119. ***  StrReadArgs.c
  120. **/
  121. extern ULONG StrReadArgs(STRPTR, LONG *, STRPTR);
  122. extern VOID StrReadArgsFree(VOID);
  123.  
  124.  
  125. /**
  126. ***  vsscanf.c
  127. **/
  128. extern LONG Vsscanf(STRPTR, STRPTR, ULONG);
  129.  
  130.  
  131. /**
  132. ***  setvar.c
  133. **/
  134. extern ULONG setvar(STRPTR, STRPTR, ULONG);
  135. /**/
  136.  
  137. #endif
  138.